<div id="base_item" order="{{ order_name }}" base="{{ base['database'].getName() }}">
    <hr>
    <h2 class="ml">База данных «<span>{{ base['database'].getName() }}</span>»</h2>
    <table class="mysql-detals">
            <tr>
                    <td width="180">
                        <div class="mysql-item">Пользователи<br>
                            <a href="" class="action" id="add_mysql_user_link" order="{{ order_name }}" base="{{ base['database'].getName() }}">добавить</a>
                            
                            <form id="create_mysql_user_form" order="{{ order_name }}" base="{{ base['database'].getName() }}">
                            <div id="add_mysql_user_content" order="{{ order_name }}" base="{{ base['database'].getName() }}" style="display:none">
                            <table>
                                <tr>
                                    <td width="1">
                                        логин:
                                    </td>
                                </tr>
                                <tr>
                                    <td width="1">
                                        <input type="text" name="user_mysql_login" order="{{ order_name }}" base="{{ base['database'].getName() }}"/>
                                    </td>
                                    <td class="status"></td>
                                </tr>
                                <tr>
                                    <td width="1">
                                        пароль:
                                    </td>
                                </tr>
                                <tr>
                                    <td width="1">
                                        <input type="text" name="user_mysql_password" order="{{ order_name }}" base="{{ base['database'].getName() }}"/>
                                    </td>
                                    <td class="status"></td>
                                </tr>
                            </table>
                                <a href="" id="generate_mysql_new_password" order="{{ order_name }}" base="{{ base['database'].getName() }}">сгенерировать</a>
                                <div id="load_icon_generate_mysql_new_password" order="{{ order_name }}" base="{{ base['database'].getName() }}" style="display:none">
                                    Генерация пароля <img alt="загрузка" src="{{ asset('bundles/billing/i/load.gif') }}">
                                </div>

                                <a href="" id="add_mysql_user" order="{{ order_name }}" base="{{ base['database'].getName() }}">создать</a>
                            </div>
                            </form>

                            <div id="load_icon_create_user" order="{{ order_name }}" base="{{ base['database'].getName() }}" style="display:none">
                                Отправление запроса <img alt="загрузка" src="{{ asset('bundles/billing/i/load.gif') }}">
                            </div>
                        </div>
                    </td>
                    <td>
                        <div id="users_list" order="{{ order_name }}" base="{{ base['database'].getName() }}">
                            {% for user in base['users'] %}
                                {% if user.getIsActive %}
                                    {% include "BillingBundle:Orders_shared:user_index_active_dbuser_template.html.twig" %}
                                {% else %}
                                    {% include "BillingBundle:Orders_shared:user_index_not_active_dbuser_template.html.twig" %}
                                {% endif %}
                            {% endfor %}
                        </div>
                        <div class="clear"></div>
                        <hr>
                    </td>
            </tr>
            <tr style="display:none">
                    <td><div class="mysql-item">Внешние права<br><a href="" class="action">добавить</a></div></td>
                    <td>

                            <div class="mysql-item"><span>localhost</span><br><a href="" class="del">удалить</a></div>
                            <div class="mysql-item"><span>192.168.11.1</span><br><a href="" class="del">удалить</a></div>
                            <div class="clear"></div>
                            <hr>
                    </td>
            </tr>
            <tr>
                    <td><div class="mysql-item">Действия:</div></td>
                    <td><div class="mysql-item">
                            <table>
                            <tr>
                                <td><a href="" class="action">скачать</a></td>
                                <td><a href="" class="action">проверить</a></td>
                                <td><a href="" class="action">починить</a></td>
                                <td><a href="" class="action">оптимизировать</a></td>
                                <td>
                                    <a href="" id="drop_database" class="action del" order="{{ order_name }}" base="{{ base['database'].getName() }}">удалить</a>
                                    <div id="load_icon_drop_db" order="{{ order_name }}" base="{{ base['database'].getName() }}" style="display:none">
                                        Отправление запроса <img alt="загрузка" src="{{ asset('bundles/billing/i/load.gif') }}">
                                    </div>
                                </td>
                            </tr>
                            </table>
                        </div>
                    </td>
            </tr>
    </table>
    <br>
</div>
